<?php
include "includes/session.php";
include "includes/comunes.php";

$sql="INSERT INTO `veh_gestion` 
(`GestionFecha`, 
`GestionTipo`, 
`GestionSubtipo`, 
`GestionVehiculo`, 
`GestionPrioridad`, 
`GestionEstado`, 
`GestionUsuario`, 
`GestionObservacion`) 
VALUES 
('".date("Y-m-y")."', 
 ".$_POST['tiponov'].",
 ".$_POST['tipoman'].",
 ".$_POST['veh_id'].",
 ".$_POST['prio'].", 
 1, 
 ".$_SESSION['usuId'].", 
 ' ".$_POST['obs']."');
";

// echo $sql;die();
$ejec=cons_sql_up($sql);
$nov=mysql_insert_id();








      


 header("Location: ListaVehiculos.php?nov_id=".$nov."&men=Se ha registrado Correctamente el Documento  ".$nov);   
?>